package com.rj.bd.Login.service;
/**
 * @DESC M层
 * @author 20565
 *
 */
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.rj.bd.Login.dao.LoginMapper;
import com.rj.bd.Login.entity.Login;
@Service("loginService")
public class LoginImpl implements ILoginService {
	@Autowired
	public LoginMapper loginMapper;

	public Login queryById(Login login) {
		return loginMapper.queryById(login);
		
	}
	

	public Login queryById1(String loginId) {
		return loginMapper.queryById1(loginId);
	}


	public Login reception(Login login) {
		
		return loginMapper.queryAll(login);
	}




	public void insert(Login login) {
		loginMapper.updateCode(login);
		
	}


	public Login code(Login login) {
	 return loginMapper.queryAll(login);
	}


	public void delete(Login dcode) {
		loginMapper.delete(dcode);
	}


	public Login accept(Login login) {
		return loginMapper.queryAll(login);
	}


	


	public void editpassword(Login login) {
		loginMapper.edit(login);
	}

}
